package com.mark.tool.demo;

import java.io.IOException;

import org.w3c.dom.Document;
import org.w3c.dom.Node;

import com.mark.tool.util.FileUtil;
import com.mark.tool.util.XmlUtil;
import com.sun.tools.internal.xjc.reader.gbind.Element;

public class XmlUtilDemo {
	public static void main(String[] args) throws IOException {
		Document doc = XmlUtil.createXml("root");
		doc.createElement("ss");
		System.out.println(XmlUtil.toStr(doc, "gbk"));
		
//		String xmlStr = FileUtil.readString("d:/aaa.xml", "gbk");
//		System.out.println(xmlStr);
	}
}
